package com.university.evaluation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.university.evaluation.entity.EvaluationItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EvaluationItemMapper extends BaseMapper<EvaluationItem> {

    // 可以在这里添加自定义的SQL方法
    List<EvaluationItem> findBySystemId(Long systemId);
    List<EvaluationItem> findModulesBySystemId(Long systemId);
    List<EvaluationItem> findItemsByParentId(Long parentId);

    List<EvaluationItem> findBySystemIdAndParentId(Long systemId, Long parentId);
}